<script src="/assets/js/qrcode.home.js" type="text/javascript"></script>
<h2>QR Code Manager 1.0</h2>
<div id="check_fileinfo" style="font-size:12px; height:24px; margin: 15px;">
	<table width="100%" height="24" border="0" cellpadding="0" cellspacing="0">
	<tr>
		<td width="24" height="24">
			<img id="check_img1" src="/assets/img/loading.gif" 
			style="width: 24px; height: 24px; margin: 0px; padding: 0px; float: left; display: none;" />
			<img id="success_img1" src="/assets/img/ico/001_06.png" 
			style="width: 24px; height: 24px; margin: 0px; padding: 0px; float: left; display: none;" />
			<img id="fail_img1" src="/assets/img/ico/001_05.png" 
			style="width: 24px; height: 24px; margin: 0px; padding: 0px; float: left; display: none;" />
			<img id="error_img1" src="/assets/img/ico/001_30.png" 
			style="width: 24px; height: 24px; margin: 0px; padding: 0px; float: left; display: none;" /></td>
		<td width="24" height="24">&nbsp;</td>
		<td height="24" valign="middle">
			<p id="check_msg1" style="display: none;"></p></td>
	</tr>
	</table>
</div>

<div id="set_siteinfo" style="font-size:12px; height:300px; margin: 15px; display: none;">
	<table width="100%" border="0" cellpadding="0" cellspacing="0">
	<tr>
		<td width="24" height="24">
			<img id="set_siteinfo_img" src="/assets/img/ico/001_45.png" 
			style="width: 24px; height: 24px; margin: 0px; padding: 0px;" /></td>
		<td width="24" height="24">&nbsp;</td>
		<td width="33%" height="24" valign="middle"><p id="set_siteinfo_msg">서버 정보를 입력하세요.</p></td>
		<td height="24" valign="middle"><p id="set_result_msg"></p></td>
	</tr>
	</table>
	
	<form id="frm_set_siteinfo">
		<input type="hidden" id="daum_key" value="" />
		<input type="hidden" id="code_key" value="http://<?=$_SERVER['HTTP_HOST']?>/c.php?c=" />
		<input type="hidden" id="code_loc" value="assets/img/png/" />
		<input type="hidden" id="line_png" value="0" />
		<input type="hidden" id="size_png" value="25" />
		<table width="100%" border="0" cellpadding="0" cellspacing="0">
		<tr>
			<td width="33%">
				<label class="cls_dlg" for="rootname">관리자ID <font color="red">영문/숫자 4~16자리</font></label>
				<input class="cls_dlg cls_txt" type="text" name="rootname" id="rootname" value="ADMINISTRATOR" class="text ui-widget-content ui-corner-all" tabindex="101" /></td>
			<td width="33%">
				<label class="cls_dlg" for="username1">사용자ID <font color="red">영문/숫자 4~16자리</font></label>
				<input class="cls_dlg cls_txt" type="text" name="username1" id="username1" class="text ui-widget-content ui-corner-all" tabindex="104" /></td>
			<td width="34%">
				<label class="cls_dlg" for="dbhost">데이터베이스 서버</label>
				<input class="cls_dlg cls_txt" type="text" name="dbhost" id="dbhost" value="localhost" class="text ui-widget-content ui-corner-all" tabindex="107" /></td>
		</tr>
		<tr>
			<td width="33%">
				<label class="cls_dlg" for="rootpass">비밀번호 <font color="red">영문/숫자 4~16자리</font></label>
				<input class="cls_dlg cls_txt" type="password" name="rootpass" id="rootpass" class="text ui-widget-content ui-corner-all" tabindex="102" /></td>
			<td width="33%">
				<label class="cls_dlg" for="userpass1">비밀번호 <font color="red">영문/숫자 4~16자리</font></label>
				<input class="cls_dlg cls_txt" type="password" name="userpass1" id="userpass1" class="text ui-widget-content ui-corner-all" tabindex="105" /></td>
			<td width="34%">
				<label class="cls_dlg" for="dbuser">데이터베이스 관리자 ID</label>
				<input class="cls_dlg cls_txt" type="text" name="dbuser" id="dbuser" class="text ui-widget-content ui-corner-all" tabindex="108" /></td>
		</tr>
		<tr>
			<td width="33%">
				<label class="cls_dlg" for="rootconf">비밀번호 확인</label>
				<input class="cls_dlg cls_txt" type="password" name="rootconf" id="rootconf" class="text ui-widget-content ui-corner-all" tabindex="103" /></td>
			<td width="33%">
				<label class="cls_dlg" for="userconf1">비밀번호 확인</label>
				<input class="cls_dlg cls_txt" type="password" name="userconf1" id="userconf1" class="text ui-widget-content ui-corner-all" tabindex="106" /></td>
			<td width="34%">
				<label class="cls_dlg" for="dbpass">데이터베이스 비밀번호</label>
				<input class="cls_dlg cls_txt" type="password" name="dbpass" id="dbpass" class="text ui-widget-content ui-corner-all" tabindex="109" /></td>
		</tr>
		<tr>
			<td colspan="2" width="66%" align="center" valign="middle">
					<input type="button" value="위의 내용으로 서버를 설정합니다." onclick="set_site_info();" tabindex="111" /></td>
			<td width="34%">
				<label class="cls_dlg" for="dbname">데이터베이스 이름</label>
				<input class="cls_dlg cls_txt" type="text" name="dbname" id="dbname" class="text ui-widget-content ui-corner-all" tabindex="110" /></td>
		</tr>
		</table>
	</form>
</div>

<div id="disp_siteinfo" style="font-size:12px; height:24px; margin: 15px; display: none;">
	<table width="100%" height="24" border="0" cellpadding="0" cellspacing="0">
	<tr>
		<td width="24" height="24">
			<img id="disp_siteinfo_img" src="/assets/img/ico/001_06.png" 
			style="width: 24px; height: 24px; margin: 0px; padding: 0px;" /></td>
		<td width="24" height="24">&nbsp;</td>
		<td height="24" valign="middle">
			<p id="disp_siteinfo_msg">사이트가 정상적으로 설치되었습니다.</p></td>
	</tr>
	</table>
</div>
